* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

html,
body {
    height: 100%;
}

.center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wrap {
    padding: 20px;
    width: 686px;
    height: 310px;

    display: flex;

    .swiper {

        width: 360px;
        height: 310px;

        .swiper-wrapper {

            div:nth-of-type(1) {
                background: url(https://huaban.com/img/login/slide_img_05.jpg) no-repeat center center;
                background-position: cover;
            }

            div:nth-of-type(2) {
                background: url(https://huaban.com/img/login/slide_img_01.jpg) no-repeat center center;
                background-position: cover;
            }

            div:nth-of-type(3) {
                background: url(https://huaban.com/img/login/slide_img_02.jpg) no-repeat center center;
                background-position: cover;
            }

            div:nth-of-type(4) {
                background: url(https://huaban.com/img/login/slide_img_03.jpg) no-repeat center center;
                background-position: cover;
            }

            div:nth-of-type(5) {
                background: url(https://huaban.com/img/login/slide_img_04.jpg) no-repeat center center;
                background-position: cover;
            }

            div:nth-of-type(6) {
                background: url(https://huaban.com/img/login/slide_img_05.jpg) no-repeat center center;
                background-position: cover;
            }

            div:nth-of-type(7) {
                background: url(https://huaban.com/img/login/slide_img_01.jpg) no-repeat center center;
                background-position: cover;
            }
        }
    }

    .login-dialog {

        flex: 1;
        height: 310px;
        // background-color: pink;

        .loginBox {
            height: 310px;
            display: flex;
            flex-direction: column;

            p {
                text-align: center;
                color: #777;
            }

            .oauth-iconfont {
                margin: 10px 0 15px 0;
                height: 48px;

                display: flex;
                justify-content: space-evenly;

                a {
                    width: 48px;
                    height: 48px;

                    display: flex;
                    justify-content: center;
                    align-items: center;

                    font-size: 32px;
                }

                a:nth-of-type(1) {
                    border: 2px solid #c90000;
                    color: #c90000;
                    border-radius: 50%;

                    &:hover {
                        color: #ffffff;
                        background-color: #c90000;
                    }
                }

                a:nth-of-type(2) {
                    border: 2px solid #2a9cd5;
                    color: #2a9cd5;
                    border-radius: 50%;

                    &:hover {
                        color: #ffffff;
                        background-color: #2a9cd5;
                    }
                }

                a:nth-of-type(3) {
                    border: 2px solid #00bb00;
                    color: #00bb00;
                    border-radius: 50%;

                    &:hover {
                        color: #ffffff;
                        background-color: #00bb00;
                    }
                }

                a:nth-of-type(4) {
                    border: 2px solid #22a049;
                    color: #22a049;
                    border-radius: 50%;

                    &:hover {
                        color: #ffffff;
                        background-color: #22a049;
                    }
                }

                a:nth-of-type(5) {
                    border: 2px solid #337ac5;
                    color: #337ac5;
                    border-radius: 50%;

                    &:hover {
                        color: #ffffff;
                        background-color: #337ac5;
                    }
                }
            }

            .mail_phone-loginBox {

                flex: 1;

                display: flex;
                flex-direction: column;

                .mail_phone-login {

                    p {
                        margin-bottom: 20px;
                        text-align: center;
                        color: #999999;

                        position: relative;

                        &::before {
                            content: '';
                            display: block;
                            width: 54px;
                            height: 1px;
                            background-color: #999999;

                            position: absolute;
                            top: 50%;
                            left: 22px;
                            transform: translateY(-50%);
                        }

                        &::after {
                            content: '';
                            display: block;
                            width: 54px;
                            height: 1px;
                            background-color: #999999;

                            position: absolute;
                            top: 50%;
                            right: 22px;
                            transform: translateY(-50%);
                        }
                    }

                    form {

                        display: flex;
                        flex-direction: column;
                        align-items: center;

                        input {
                            margin-bottom: 10px;
                            padding: 0 10px;
                            width: 264px;
                            height: 36px;
                            font-size: 18px;
                            color: #757575;
                            outline: none;
                            border: 1px solid #dddddd;

                            font-size: 10px;
                        }

                        .error {
                            margin-top: -3px;
                            margin-bottom: 3px;
                            white-space: nowrap;
                            color: red;
                            font-size: 10px;
                        }

                        .goto-login-btn {
                            margin-bottom: 15px;
                            padding: 0 15px;
                            width: 285px;
                            height: 36px;
                            line-height: 36px;
                            font-size: 18px;
                            text-align: center;
                            color: #ffffff;
                            border: none;
                            border-radius: 2px;
                            background-color: #ec414d;
                            cursor: pointer;

                            &:hover {
                                background-color: #e31725;
                            }
                        }
                    }
                }

                .goto-find-dialog {
                    flex: 1;
                    font-size: 14px;

                    display: flex;
                    // justify-content: space-between;
                    align-items: flex-end;

                    .findpsd {

                        margin-left: 20px;

                        a {
                            color: #9a0000;

                            &:hover {
                                text-decoration: underline;
                            }
                        }
                    }

                    .dialog-btn-wrap {
                        margin-left: auto;
                        margin-right: 20px;

                        a {
                            color: #9a0000;

                            &:hover {
                                text-decoration: underline;
                            }
                        }
                    }
                }
            }

            .resetBox {

                display: none;

                flex: 1;

                // display: flex;
                flex-direction: column;

                .reset {

                    p {
                        margin-bottom: 20px;
                        text-align: center;
                        color: #999999;

                        position: relative;

                        &::before {
                            content: '';
                            display: block;
                            width: 54px;
                            height: 1px;
                            background-color: #999999;

                            position: absolute;
                            top: 50%;
                            left: 22px;
                            transform: translateY(-50%);
                        }

                        &::after {
                            content: '';
                            display: block;
                            width: 54px;
                            height: 1px;
                            background-color: #999999;

                            position: absolute;
                            top: 50%;
                            right: 22px;
                            transform: translateY(-50%);
                        }
                    }

                    form {

                        display: flex;
                        flex-direction: column;
                        align-items: center;

                        input {
                            margin-bottom: 10px;
                            padding: 0 10px;
                            width: 264px;
                            height: 36px;
                            font-size: 18px;
                            color: #757575;
                            outline: none;
                            border: 1px solid #dddddd;

                            font-size: 10px;
                        }

                        .find-btn {
                            margin-bottom: 15px;
                            padding: 0 15px;
                            width: 254px;
                            height: 36px;
                            line-height: 36px;
                            font-size: 18px;
                            text-align: center;
                            color: #ffffff;
                            border-radius: 2px;
                            background-color: #ec414d;
                        }
                    }
                }

                .goto-find {
                    flex: 1;
                    font-size: 14px;

                    display: flex;

                    .remind {

                        margin-left: 20px;

                        a {
                            color: #9a0000;
                        }
                    }

                    .dialog-btn-wrap {
                        margin-left: auto;
                        margin-right: 20px;
                        align-self: flex-end;

                        a {
                            color: #9a0000;
                        }
                    }
                }
            }
        }

        .dialogBox {

            display: none;

            .dialog {

                height: 310px;

                display: flex;
                flex-direction: column;

                .logo {

                    align-self: center;
                    margin: 20px 0;
                    width: 120px;
                    height: 40px;

                    img {
                        width: 100%;
                        vertical-align: top;
                    }
                }

                .text_iconfont {

                    display: flex;
                    flex-direction: column;
                    align-items: center;

                    p {
                        padding-bottom: 20px;
                        color: #777;
                    }

                    .iconfont_dialog {

                        // width: 300px;
                        width: 100%;
                        height: 64px;

                        display: flex;
                        justify-content: space-evenly;

                        a {
                            width: 64px;
                            height: 64px;

                            display: flex;
                            justify-content: center;
                            align-items: center;

                            font-size: 40px;
                            line-height: 64px;
                        }

                        a:nth-of-type(1) {
                            border: 2px solid #c90000;
                            color: #c90000;
                            border-radius: 50%;

                            &:hover {
                                color: #ffffff;
                                background-color: #c90000;
                            }
                        }

                        a:nth-of-type(2) {
                            border: 2px solid #2a9cd5;
                            color: #2a9cd5;
                            border-radius: 50%;

                            &:hover {
                                color: #ffffff;
                                background-color: #2a9cd5;
                            }
                        }

                        a:nth-of-type(3) {
                            border: 2px solid #00bb00;
                            color: #00bb00;
                            border-radius: 50%;

                            &:hover {
                                color: #ffffff;
                                background-color: #00bb00;
                            }
                        }

                        a:nth-of-type(4) {
                            border: 2px solid #22a049;
                            color: #22a049;
                            border-radius: 50%;

                            &:hover {
                                color: #ffffff;
                                background-color: #22a049;
                            }
                        }
                    }

                    &>a {
                        padding-top: 20px;
                        color: #9e7e6b;

                        &:hover {
                            color: red;
                            text-decoration: underline;
                        }
                    }
                }

                .dialog_phone {

                    display: none;

                    p {
                        margin-bottom: 20px;
                        text-align: center;
                        color: #999999;

                        position: relative;

                        &::before {
                            content: '';
                            display: block;
                            width: 54px;
                            height: 1px;
                            background-color: #999999;

                            position: absolute;
                            top: 50%;
                            left: 22px;
                            transform: translateY(-50%);
                        }

                        &::after {
                            content: '';
                            display: block;
                            width: 54px;
                            height: 1px;
                            background-color: #999999;

                            position: absolute;
                            top: 50%;
                            right: 22px;
                            transform: translateY(-50%);
                        }
                    }

                    form {

                        display: flex;
                        flex-direction: column;
                        align-items: center;

                        input {
                            // box-sizing: border-box;
                            margin-bottom: 10px;
                            padding: 0 10px;
                            width: 264px;
                            height: 36px;
                            font-size: 18px;
                            color: #757575;
                            outline: none;
                            border: 1px solid #dddddd;

                            font-size: 10px;
                        }

                        .error {
                            margin-top: -3px;
                            margin-bottom: 3px;
                            white-space: nowrap;
                            color: red;
                            font-size: 10px;
                        }

                        .verify {
                            margin-bottom: 15px;
                            width: 286px;
                            height: 32px;
                            background-color: #e8e8e8;
                        }

                        .goto-dialog {
                            margin-bottom: 15px;
                            padding: 0 15px;
                            width: 285px;
                            height: 36px;
                            line-height: 36px;
                            font-size: 18px;
                            text-align: center;
                            color: #ffffff;
                            border-radius: 2px;
                            border: none;
                            background-color: #ec414d;
                            cursor: pointer;

                            &:hover {
                                background-color: #e31725;
                            }
                        }

                        .goback-oauth {
                            font-size: 14px;
                            color: #9e7e6b;
                        }
                    }

                }

                .goto-login {
                    margin-right: 20px;
                    font-size: 14px;
                    flex: 1;
                    display: flex;
                    align-items: flex-end;
                    align-self: flex-end;

                    a {
                        color: #9e7e6b;

                        &:hover {
                            color: red;
                            text-decoration: underline;
                        }
                    }
                }
            }
        }
    }
}